package com.google.code.ptrends.locators;

import java.io.IOException;
import java.io.InputStream;

/**
 * Contract of source data locator
 * 
 * @author tillias
 * 
 */
public interface Locator {
	/**
	 * Gets underlying streamed content
	 * 
	 * @return Streamed content
	 */
	InputStream getStream() throws IOException;

	/**
	 * Closes locator and cleans all associated resources;
	 */
	void close();
}
